package com.itheima.stock.service;

import com.itheima.stock.pojo.domain.*;
import com.itheima.stock.vo.resp.PageResult;
import com.itheima.stock.vo.resp.R;
import com.itheima.stock.vo.resp.UpDownWithTimeVo;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface StockService {
    R<List<InnerMarketDomain>> getIndexAll();

    R<UpDownWithTimeVo> getStockUpDown();

    R<PageResult> getStockPageInfo(Integer page, Integer pageSize);

    //void stockExport(HttpServletResponse response, Integer page, Integer pageSize);

    R<List<Stock4EvrDayDomain>> getStockScreenDkLine(String stockCode);

    R<List<StockBlockDomain>> sectorAllLimit();

    R<List<StockRfInfoDomain>> increase();

    R<Map> getStockUpdownCount();

    R<Map> stockTradeVol4InnerMarket();

    /**
     * 查询当前时间下股票的涨跌幅度区间统计功能
     * 如果当前日期不在有效时间内，则以最近的一个股票交易时间作为查询点
     * @return
     */
    R<Map> stockUpDownScopeCount();


    R<List<Stock4MinuteDomain>> stockScreenTimeSharing(String code);
}
